package cn.nova.bus.ws;

public class NetTicketSellServiceImplProxy implements NetTicketSellServiceImpl {
  private String _endpoint = null;
  private NetTicketSellServiceImpl netTicketSellServiceImpl = null;
  
  public NetTicketSellServiceImplProxy() {
    _initNetTicketSellServiceImplProxy();
  }
  
  public NetTicketSellServiceImplProxy(String url,boolean flag) {
	    _initNetTicketSellServiceImplProxy(url);
	  }
  
  private void _initNetTicketSellServiceImplProxy(String url) {
	    try {
	      netTicketSellServiceImpl = (new NetTicketSellServiceImplServiceLocator(url)).getNetTicketSellServiceImplPort();
	      if (netTicketSellServiceImpl != null) {
	        if (_endpoint != null)
	          ((javax.xml.rpc.Stub)netTicketSellServiceImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
	        else
	          _endpoint = (String)((javax.xml.rpc.Stub)netTicketSellServiceImpl)._getProperty("javax.xml.rpc.service.endpoint.address");
	      }
	      
	    }
	    catch (javax.xml.rpc.ServiceException serviceException) {}
	  }
  
  public NetTicketSellServiceImplProxy(String endpoint) {
    _endpoint = endpoint;
    _initNetTicketSellServiceImplProxy();
  }
  
  
  
  private void _initNetTicketSellServiceImplProxy() {
    try {
      netTicketSellServiceImpl = (new NetTicketSellServiceImplServiceLocator()).getNetTicketSellServiceImplPort();
      if (netTicketSellServiceImpl != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)netTicketSellServiceImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)netTicketSellServiceImpl)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (netTicketSellServiceImpl != null)
      ((javax.xml.rpc.Stub)netTicketSellServiceImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public NetTicketSellServiceImpl getNetTicketSellServiceImpl() {
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl;
  }
  
  public java.lang.String lock(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.lock(arg0);
  }
  
  public java.lang.String unlock(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.unlock(arg0);
  }
  
  public java.lang.String residueseatquery(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.residueseatquery(arg0);
  }
  
  public java.lang.String sell(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.sell(arg0);
  }
  
  public java.lang.String orderquery(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.orderquery(arg0);
  }
  
  public java.lang.String taketicket(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.taketicket(arg0);
  }
  
  public java.lang.String changeticketno(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.changeticketno(arg0);
  }
  
  public java.lang.String returnticket(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.returnticket(arg0);
  }
  
  public java.lang.String cancelticket(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.cancelticket(arg0);
  }
  
  public java.lang.String changeticket(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.changeticket(arg0);
  }
  
  public java.lang.String taketicketquery(java.lang.String arg0) throws java.rmi.RemoteException{
    if (netTicketSellServiceImpl == null)
      _initNetTicketSellServiceImplProxy();
    return netTicketSellServiceImpl.taketicketquery(arg0);
  }
  
  
}